package com.springboot.store.po;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;

/**
 * 存储对象--用户
 *
 * @author yangz
 * @version latest
 * @date 2015/8/14
 */
@Entity
public class UserPO {

    public final static String Field_NAME_USERNAME = "username";

    public final static String Field_NAME_NICKNAME = "nickname";

    public final static String Field_NAME_PASSWORD = "password";


    @Id
    @GenericGenerator(name="systemUUID",strategy="uuid")
    @GeneratedValue(generator="systemUUID")
    private String id;

    private String username;

    private String nickname;

    private String password;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }
}
